home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Form / Sources / Content.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  3.5 KB  |  127 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Content.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef CONTENT_H
  11. #define CONTENT_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWCONTNT_H
  16. #include "FWContnt.h"
  17. #endif
  18.  
  19. #ifndef FWCONTRL_H
  20. #include "FWContrl.h"
  21. #endif
  22.  
  23. // ----- Foundation Includes -----
  24.  
  25. #ifndef FWEXCLIB_H
  26. #include "FWExcLib.h"
  27. #endif
  28.  
  29. #ifndef FWBNDSTR_H
  30. #include "FWBndStr.h"
  31. #endif
  32.  
  33. #ifndef FWRECEVR_H
  34. #include "FWRecevr.h"
  35. #endif
  36.  
  37. //========================================================================================
  38. //    Forward Declarations
  39. //========================================================================================
  40.  
  41. class FW_CPart;
  42. class FW_CFrame;
  43.  
  44. //========================================================================================
  45. //    class CFormContent
  46. //========================================================================================
  47.  
  48. class CFormContent : public FW_CContent, public FW_MReceiver
  49. {
  50. public:
  51.     FW_DECLARE_CLASS
  52.     FW_DECLARE_AUTO(CFormContent)
  53.     
  54. //----------------------------------------------------------------------------------------
  55. //    Initialization/Destruction
  56. //
  57. public:
  58.     CFormContent(Environment* ev, FW_CPart* part);
  59.     
  60. //----------------------------------------------------------------------------------------
  61. //    Inherited API
  62. //
  63. public:
  64.     virtual void        ExternalizeKind(Environment* ev,
  65.                                     ODStorageUnit* storageUnit,
  66.                                     FW_CKind* kind,
  67.                                     FW_StorageKinds storageKind,
  68.                                     FW_CPromise* promise,
  69.                                     FW_CCloneInfo* cloneInfo);
  70.     virtual FW_Boolean    InternalizeKind(Environment* ev,
  71.                                     ODStorageUnit* storageUnit, 
  72.                                      FW_CKind* kind,
  73.                                     FW_StorageKinds storageKind,
  74.                                     FW_CCloneInfo* cloneInfo);
  75.  
  76.     void                AddViewInterests(Environment* ev, FW_CFrame* frame);
  77.     virtual void        HandleNotification(Environment* ev, const FW_CNotification& notification);
  78.     
  79. //----------------------------------------------------------------------------------------
  80. //    New API
  81. //
  82. public:
  83.     void                ImportFromViews(Environment* ev, FW_CFrame* frame);
  84.     void                ExportToViews(Environment* ev, FW_CFrame* frame);
  85.  
  86.     void                GetEditViewText(Environment* ev, 
  87.                                         FW_CFrame* frame,
  88.                                         ODID viewID);
  89.     void                SetEditViewText(Environment* ev,
  90.                                         FW_CFrame* frame,
  91.                                         ODID viewID);
  92.                                         
  93.     void                GetControlValue(Environment* ev,
  94.                                         FW_CFrame* frame,
  95.                                         ODID viewID);
  96.     void                SetControlValue(Environment* ev,
  97.                                         FW_CFrame* frame,
  98.                                         ODID viewID);
  99.     
  100.     FW_CString*         ViewIDToStringAddress(ODID viewID);
  101.     FW_ControlValue*    ViewIDToControlValueAddress(ODID viewID);
  102.     
  103. //----------------------------------------------------------------------------------------
  104. //    Data Members
  105. //
  106. private:
  107.     FW_CString            fFirstName;
  108.     FW_CString            fLastName;
  109.     FW_CString            fMemberName;
  110.     FW_CString            fEMailAddress;
  111.     FW_CString            fComments;
  112.     FW_ControlValue        fSubscribeCheckboxState;
  113.     FW_ControlValue        f14400RadioState;
  114.     FW_ControlValue        f28800RadioState;
  115.     FW_ControlValue        fFasterRadioState;
  116.     FW_ControlValue        fBrowseMenuItem;
  117.     FW_ControlValue        fOnlineMenuItem;
  118.     FW_ControlValue        fWordOfMouthRadioState;
  119.     FW_ControlValue        fHyperLinkRadioState;
  120.     FW_ControlValue        fMacTechRadioState;
  121.     FW_ControlValue        fMagazineRadioState;
  122.     FW_ControlValue        fOtherRadioState;
  123.     FW_ControlValue        fYesRadioState;
  124.     FW_ControlValue        fNoRadioState;
  125. };
  126.  
  127. #endif